package com.example.guestbook.repository;

import java.util.List;

import com.example.guestbook.po.Greeting;
import com.gaeig.repository.JDORepository;

public class GuestBookRepositoryImpl extends JDORepository implements GuestBookRepository {

  public List<Greeting> getAllGreetings() {
    return findAll(Greeting.class);
  }

  public void saveGreeting(Greeting greeting) {
    save(greeting);
  }

  public void deleteGreeting(Greeting greeting) {
    delete(greeting);
  }
}
